<?php
use \common\components\Toast;
$this->title = '添加管理员';
?>
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <span class="caption-subject  bold uppercase"><?=$this->title?></span>
        </div>
        <form action="<?=\yii\helpers\Url::to(['/auth/manager'])?>" class="form-horizontal" method="post">
            <div class="modal-body">
                    <div class="form-body">
                        <div class="form-group">
                            <label class="col-md-3 control-label">管理员</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" placeholder="管理员" name="name" value="">
                                <span class="help-block"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">初始密码</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" placeholder="初始密码" name="password" value="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">邮件</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" placeholder="邮件" name="email" value="">
                            </div>
                        </div>
                    </div>
            </div>

            <div class="modal-footer">
                <input type="hidden" name="<?=Yii::$app->request->csrfParam?>" value="<?=Yii::$app->request->getCsrfToken();?>"/>
                <button type="submit" class="btn green">提交</button>
            </div>
        </form>
    </div>
</div>
<?php
    Toast::widget();
?>
